-m pytest
This is almost equivalent to invoking the command line script pytest
...
directly, except that calling via python will also add the current directory to sys.path.
https://docs.pytest.org/en/latest/usage.html#cmdline